/**
 * Created by sa on 2016/9/22.
 */


var casper = require('casper').create();

casper.start('http://www.baidu.com/', function() {
  var pathP = 'D:/work_nodeJS/crawl_youku_nodejs/casperjs/' + new Date().valueOf() + '.png'
  this.capture(pathP, {
    top: 0,
    left: 0,
    width: 1024,
    height: 1024
  });
});

casper.run();
